package com.clstu.mhl.domain;

import java.util.Date;

/**
 * 这是一个基于多表查询的javaBean 对应多张表
 */
public class MultiTableBean {
    private Integer id;
    private String billId;  //账单号(bill表)
    private Integer menuId;
    private String name ;//菜名
    private Double price;//单价(menu表)
    private Integer nums;
    private Double money;
    private String tableId;
    private Date date;
    private String state;
    //无参构造器(必须有)
    public MultiTableBean(){}

    //构造器(可不要)
    public MultiTableBean(Integer id, String billId, Integer menuId, String name, Double price, Integer nums, Double money, String tableId, Date date, String state) {
        this.id = id;
        this.billId = billId;
        this.menuId = menuId;
        this.name = name;
        this.price = price;
        this.nums = nums;
        this.money = money;
        this.tableId = tableId;
        this.date = date;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBillId() {
        return billId;
    }

    public void setBillId(String billId) {
        this.billId = billId;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getTableId() {
        return tableId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return id +
                "\t\t" + billId +
                "\t\t" + menuId +
                "\t\t" + name +
                "\t\t" + nums +
                "\t\t" + money +
                "\t\t" + tableId +
                "\t\t" + date +
                "\t\t" + state+
                "\t\t" + price;


    }
}
